package it.uniba.di.mas.jpnde.agent;

import it.uniba.di.mas.jpnde.behaviour.PNManagerInit;
import jade.content.lang.sl.SLCodec;
import jade.core.Agent;
import jade.domain.FIPANames;
import jade.domain.JADEAgentManagement.JADEManagementOntology;


public class PNManager extends Agent{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	protected void setup() {
		System.out.println("PN Manager:"+getAID().getName()+" is ready.");
		
		getContentManager().registerLanguage(new SLCodec(), FIPANames.ContentLanguage.FIPA_SL);
		getContentManager().registerOntology(JADEManagementOntology.getInstance());
		
		addBehaviour(new PNManagerInit());
	
	}

	
	protected void takeDown() {
		System.out.println("PN Manager:"+getAID().getName()+" terminated.");
		// Killing Transaction ....
	}
}
